<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditOrderitemTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditOrderitemLabel_orderitemid}" for="orderitemid" />
                    <h:inputText id="orderitemid" value="#{orderitemController.selected.orderitemid}" title="#{bundle.EditOrderitemTitle_orderitemid}" required="true" requiredMessage="#{bundle.EditOrderitemRequiredMessage_orderitemid}"/>
                    <h:outputLabel value="#{bundle.EditOrderitemLabel_productid}" for="productid" />
                    <h:inputText id="productid" value="#{orderitemController.selected.productid}" title="#{bundle.EditOrderitemTitle_productid}" required="true" requiredMessage="#{bundle.EditOrderitemRequiredMessage_productid}"/>
                    <h:outputLabel value="#{bundle.EditOrderitemLabel_itemprice}" for="itemprice" />
                    <h:inputText id="itemprice" value="#{orderitemController.selected.itemprice}" title="#{bundle.EditOrderitemTitle_itemprice}" required="true" requiredMessage="#{bundle.EditOrderitemRequiredMessage_itemprice}"/>
                    <h:outputLabel value="#{bundle.EditOrderitemLabel_itemquantity}" for="itemquantity" />
                    <h:inputText id="itemquantity" value="#{orderitemController.selected.itemquantity}" title="#{bundle.EditOrderitemTitle_itemquantity}" required="true" requiredMessage="#{bundle.EditOrderitemRequiredMessage_itemquantity}"/>
                    <h:outputLabel value="#{bundle.EditOrderitemLabel_orderid}" for="orderid" />
                    <h:selectOneMenu id="orderid" value="#{orderitemController.selected.orderid}" title="#{bundle.EditOrderitemTitle_orderid}" required="true" requiredMessage="#{bundle.EditOrderitemRequiredMessage_orderid}">
                        <f:selectItems value="#{orderOmsController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{orderitemController.update}" value="#{bundle.EditOrderitemSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditOrderitemViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{orderitemController.prepareList}" value="#{bundle.EditOrderitemShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditOrderitemIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
